package nio;

import optional.User;

import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;

/**
 * @Author Klys
 * @Date 2023/6/2 12:00
 * @Description
 * @Version 1.0
 */
public class Demo02 {

    public static void main(String[] args) {
        IntBuffer buffer = IntBuffer.allocate(10);
        buffer
                .put(1)
                .put(2)
                .put(3);   //我们依次存放三个数据试试看
        System.out.println(buffer);


    }
}
